﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Perst;

namespace skiordiecore
{

    public class Root : Persistent
    {
        public FieldIndex<int, Championship> intKeyIndex;
        public FieldIndex<string, Championship> strKeyIndex;

        public FieldIndex<int, Participant> intKeyParticipants;

        public Root() { }

         public Root(Storage db) : base(db)
        {

            intKeyIndex = db.CreateFieldIndex<int, Championship>("id", true);
            strKeyIndex = db.CreateFieldIndex<string, Championship>("name", false);
            intKeyParticipants = db.CreateFieldIndex<int, Participant>("id", true);
        }

        
        
    }

}
